/* Makefile for src subdirectory in XEmacs.
   Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
   Copyright (C) 1994, 1995 Board of Trustees, University of Illinois

This file is part of XEmacs.

XEmacs is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.

XEmacs is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with XEmacs; see the file COPYING.  If not, write to the Free
Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */

@SET_MAKE@

/* Some people use these in paths they define.  We don't want their paths
   getting changed on them. */
#undef sparc
#undef sun
#undef unix
#undef sgi
#undef NeXT

dot = .
/* On Xenix and the IBM RS6000, double-dot gets screwed up.  */
lispdir = ${srcdir}/$(dot)$(dot)/lisp/
libsrc = $(dot)$(dot)/lib-src/
etcdir = $(dot)$(dot)/etc/

/* Here are the things that we expect ../configure to edit. */
srcdir=@srcdir@
VPATH=@srcdir@
CC=@CC@
CPP=@CPP@
CFLAGS=@CFLAGS@
C_SWITCH_SYSTEM=@c_switch_system@
LN_S=@LN_S@
native_sound_lib=@native_sound_lib@

/* just to be sure the sh is used */
SHELL=/bin/sh

#define NO_SHORTNAMES
#define THIS_IS_YMAKEFILE
#define NOT_C_CODE
#include "config.h"

#ifdef USE_LCC
/* Why is this here?
# undef LIB_STANDARD
# define LIB_STANDARD
*/
# define LCCFLAGS -Xa -wucp -XW'[Oo]ld style func dcl' $(ENERGIZEP)
#ifdef NEW_LCC
# define LCCLINK -Xdbx
#else
# define LCCLINK
#endif
# define ORDINARY_LINK
#else
# define LCCFLAGS
# define LCCLINK
#endif

/* On some machines #define register is done in config;
   don't let it interfere with this file.  */
#undef register

/* On some systems we may not be able to use the system make command. */
#ifdef MAKE_COMMAND
MAKE = MAKE_COMMAND
#endif

#ifdef C_COMPILER
CC = C_COMPILER
#endif

/* Some machines don't find the standard C libraries in the usual place.  */
#ifndef ORDINARY_LINK
#ifndef LIB_STANDARD
#define LIB_STANDARD -lc
#endif
#else
#ifndef LIB_STANDARD
#define LIB_STANDARD
#endif
#endif

/* Unless inhibited or changed, use -lg to link for debugging.  */
#ifndef LIBS_DEBUG
#define LIBS_DEBUG -lg
#endif

/* Some s/*.h files define this to request special libraries.  */
#ifndef LIBS_SYSTEM
#define LIBS_SYSTEM
#endif

/* Some m/*.h files define this to request special libraries.  */
#ifndef LIBS_MACHINE
#define LIBS_MACHINE
#endif

#ifndef LIB_MATH
# ifdef LISP_FLOAT_TYPE
#  define LIB_MATH -lm
# else /* ! defined (LISP_FLOAT_TYPE) */
#  define LIB_MATH
# endif /* ! defined (LISP_FLOAT_TYPE) */
#endif /* LIB_MATH */

/* Some s/*.h files define this to request special switches in ld.  */
#ifndef LD_SWITCH_SYSTEM
#if !defined (__GNUC__) && (defined(COFF_ENCAPSULATE) || (defined (BSD) && !defined (COFF)))
#define LD_SWITCH_SYSTEM -X
#else /* ! defined(COFF_ENCAPSULATE) || (defined (BSD) && !defined (COFF)) */
#define LD_SWITCH_SYSTEM
#endif /* ! defined(COFF_ENCAPSULATE) || (defined (BSD) && !defined (COFF)) */
#endif /* LD_SWITCH_SYSTEM */

#ifndef LD_SWITCH_CALL_SHARED
#define LD_SWITCH_CALL_SHARED
#endif /* define a call_shared switch */

#ifndef LD_SWITCH_SHARED
#define LD_SWITCH_SHARED -c
#endif /* define a shared switch */

/* Some m/*.h files define this to request special switches in ld.  */
#ifndef LD_SWITCH_MACHINE
#define LD_SWITCH_MACHINE
#endif

/* Some m/*.h files define this to request special switches in cc.  */
#ifndef C_SWITCH_MACHINE
#define C_SWITCH_MACHINE
#endif

/* Some s/*.h files define this to request special switches in cc.  */
#ifndef C_SWITCH_SYSTEM
#define C_SWITCH_SYSTEM
#endif

/* These macros are for switches specifically related to X Windows.  */
#ifndef C_SWITCH_X_MACHINE
#define C_SWITCH_X_MACHINE
#endif

#ifndef C_SWITCH_X_SYSTEM
#define C_SWITCH_X_SYSTEM
#endif

#ifndef C_SWITCH_X_SITE
#define C_SWITCH_X_SITE
#endif

#ifndef LD_SWITCH_X_SYSTEM
#define LD_SWITCH_X_SYSTEM
#endif

#ifndef LD_SWITCH_X_SITE
#define LD_SWITCH_X_SITE
#endif

/* These can be passed in from config.h to define special load and
   compile switches needed by individual sites */
#ifndef LD_SWITCH_SITE
#define LD_SWITCH_SITE
#endif

#ifndef C_SWITCH_SITE
#define C_SWITCH_SITE
#endif

#ifndef ORDINARY_LINK

#ifndef CRT0_COMPILE
#define CRT0_COMPILE $(CC) -c $(ALL_CFLAGS) C_SWITCH_ASM 
#endif

#ifndef START_FILES
#ifdef NO_REMAP
#ifdef COFF_ENCAPSULATE
#define START_FILES pre-crt0.o /usr/local/lib/gcc-crt0.o
#else /* ! defined (COFF_ENCAPSULATE) */
#define START_FILES pre-crt0.o /lib/crt0.o
#endif /* ! defined (COFF_ENCAPSULATE) */
#else /* ! defined (NO_REMAP) */
#define START_FILES crt0.o
#endif /* ! defined (NO_REMAP) */
#endif /* START_FILES */
STARTFILES = START_FILES

#else /* ORDINARY_LINK */

/* config.h might want to force START_FILES anyway */
#ifdef START_FILES
STARTFILES = START_FILES
#endif /* START_FILES */

#endif /* not ORDINARY_LINK */

/* Unless inhibited or changed, use -g to compile for debugging. */
#ifndef C_DEBUG_SWITCH
#define C_DEBUG_SWITCH -g
#endif

/* If user wants to optimize, this is how.  */
#ifndef C_OPTIMIZE_SWITCH
#define C_OPTIMIZE_SWITCH -O
#endif

/* cc switches needed to make `asm' keyword work.
   Nothing special needed on most machines.  */
#ifndef C_SWITCH_ASM
#define C_SWITCH_ASM
#endif

ILD=/cadillac1/code/bin.sun4/ild

PURIFY_PROG=/acsl/bin/purify
QUANTIFY_PROG=/acsl/bin/quantify -windows=no -record-data=no
PURECOV_PROG=/acsl/bin/purecov
#ifdef QUANTIFY
#define QUANTIFY_INCLUDES -I/acsl/packages/quantify-2.0-solaris2
#define QUANTIFY_LIBS /acsl/packages/quantify-2.0-solaris2/quantify_stubs.a
#else
#define QUANTIFY_INCLUDES
#define QUANTIFY_LIBS
#endif

/* Figure out whether the system cpp can handle long names.
   Do it by testing it right now.
   If it loses, arrange to use the GNU cpp.  */

#define LONGNAMEBBBFOOX
#ifdef LONGNAMEBBBARFOOX
/* Installed cpp fails to distinguish those names!  */
/* Arrange to compile the GNU cpp later on */
#define NEED_CPP
/* Cause cc to invoke the cpp that comes with Emacs,
   which will be in a file named localcpp.  */
MYCPPFLAG= -Blocal
/* LOCALCPP is the local one or nothing.
   CPP is the local one or the standardone.  */
LOCALCPP= localcpp
#endif /* ! defined (LONGNAMEBBBARFOOX) */

#ifdef SHORTNAMES
SHORT= shortnames
#endif

#ifdef HAVE_NATIVE_SOUND
# if defined (SOLARIS2)
#   define SOUND_CFLAGS		C_SWITCH_SITE -I/usr/demo/SOUND/include
#   define SOUND_LIBS		${native_sound_lib}
#   define SOUND_OBJS		sunplay.o
# else /* !SOLARIS2 */
#   if defined (SPARC)
#     define SOUND_CFLAGS	C_SWITCH_SITE -I/usr/demo/SOUND
#     define SOUND_LIBS		${native_sound_lib}
#     define SOUND_OBJS		sunplay.o
# else /* !SUNOS4 */
#   if defined (IRIX4) || defined (IRIX5)
#     define SOUND_CFLAGS
#     define SOUND_LIBS		-laudio
#     define SOUND_OBJS		sgiplay.o
# else /* !IRIX */
#   if defined (hp9000s800)
#     ifdef USE_GCC
#       define SOUND_CFLAGS	-Dconst= -Dvolatile= -I/usr/audio/examples
#     else /* ! USE_GCC */
#       define SOUND_CFLAGS	+e -I/usr/audio/examples 
#    endif /* USE_GCC */
#    define SOUND_LIBS		-lAlib	
#    define SOUND_OBJS		hpplay.o
# else /* !HP9000S800 */
#   if defined (LINUX)
#     define SOUND_CFLAGS
#     define SOUND_LIBS
#     define SOUND_OBJS		linuxplay.o
# else /* !LINUX */
  ERROR!!  HAVE_NATIVE_SOUND can only be defined on Solaris, SunOS, SGI, hp9000s800, or Linux
#     endif /* !LINUX */
#    endif /* !HP9000S800 */
#   endif /* !IRIX */
#  endif /* !SUNOS4 */
# endif /* !SOLARIS2 */
#else /* !HAVE_NATIVE_SOUND */
# define SOUND_CFLAGS
# define SOUND_LIBS
# define SOUND_OBJS
#endif /* ! HAVE_NATIVE_SOUND */

#ifdef HAVE_NAS_SOUND
# define NAS_CFLAGS C_SWITCH_SITE 
# define NAS_LIBS -laudio
# define NAS_OBJS nas.o
#else
# define NAS_CFLAGS
# define NAS_LIBS
# define NAS_OBJS
#endif /* HAVE_NAS_SOUND */

#ifdef ENERGIZE
CONN_DIR=../connection
# define ENERGIZE_INCLUDES -I${I_DIR_PREFIX}${CONN_DIR}
# define ENERGIZE_LDFLAGS -L${CONN_DIR}
# if defined(ENERGIZE_3)
#  define ENERGIZE_LIBS -lenergize
# elif defined (ENERGIZE_2)
#  define ENERGIZE_LIBS -lconn
# else
#  define ENERGIZE_LIBS -lconn
# endif
#else /* !ENERGIZE */
# define ENERGIZE_INCLUDES
# define ENERGIZE_LDFLAGS
# define ENERGIZE_LIBS
#endif /* !ENERGIZE */

#if defined (HAVE_SOCKS)
# define SOCKS_LIBS -lsocks
#else /* !HAVE_SOCKS */
# define SOCKS_LIBS
#endif /* !HAVE_SOCKS */

/* If you want to debug, you can add C_DEBUG_SWITCH to this list.
   If you want to optimize, you can add C_OPTIMIZE_SWITCH to the list.  */

/* -Demacs is needed to make some files produce the correct version
   for use in Emacs.

   -DHAVE_CONFIG_H is needed for some other files to take advantage of
   the information in `config.h'.  */

/* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
   since it may have -I options that should override those two.  */

CPPFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAG) -I. \
	   -I${srcdir} LCCFLAGS C_SWITCH_MACHINE C_SWITCH_SYSTEM \
	   C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE \
	   C_SWITCH_X_SYSTEM $(LIBX11_INCLUDES) QUANTIFY_INCLUDES 
ALL_CFLAGS=$(CPPFLAGS) ${CFLAGS}

LDFLAGS = LD_SWITCH_SITE LD_SWITCH_SYSTEM \
	  LD_SWITCH_X_SYSTEM LD_SWITCH_MACHINE \
	  -L. $(LIBX11_LDFLAGS) ENERGIZE_LDFLAGS

#ifdef HAVE_NEXTSTEP
.m.o:
	$(CC) -c $(ALL_CFLAGS) $<
#endif

.c.o:
	$(CC) -c $(ALL_CFLAGS) $<


#ifndef LIBX11_MACHINE
#define LIBX11_MACHINE
#endif

#ifndef LIBX11_SYSTEM
#define LIBX11_SYSTEM
#endif

LWLIBSRCDIR = ${srcdir}/$(dot)$(dot)/lwlib

#ifdef HAVE_X_WINDOWS
#define XOBJ redisplay-x.o frame-x.o xselect.o event-Xt.o menubar-x.o \
	     xgccache.o objects-x.o glyphs-x.o scrollbar-x.o toolbar-x.o

#ifdef HAVE_XMU
#define XMU_OBJ
XMU_LIB = -lXmu
#else
#define XMU_OBJ xmu.o
#endif

#ifdef EPOCH
#define EPOCH_OBJ epoch.o
#else
#define EPOCH_OBJ
#endif

/* mule-canna.c and mule-wnnfns.c are for input methods and we're
   not dealing with them right now. */

#ifdef MULE
# ifdef MULE_REGEXP
#  define MULE_REGEXP_OBJS mule/mule-category.o
# else
#  define MULE_REGEXP_OBJS
# endif
# define MULE_OBJS mule/mule.o MULE_REGEXP_OBJS mule/mule-ccl.o \
		   mule/mule-charset.o mule/mule-coding.o \
		   mule/mule-mcpath.o
#else
#define MULE_OBJS
#endif

/* LWLIBSRCDIR is defined above regardless of X being used or not.
   This avoids having to conditionalize the dependencies on lwlib.h */
LWLIBBUILDDIR = $(dot)$(dot)/lwlib

LIBX11_LDFLAGS = -L$(LWLIBBUILDDIR) LD_SWITCH_X_SITE
LIBX11_INCLUDES = -I$(LWLIBSRCDIR)

#ifdef HAVE_XPM
/* Force the Xpm library to be statically linked, always, if at Sun. */
# ifdef USAGE_TRACKING
    XPM_LIBS = -Bstatic -lXpm -Bdynamic
# else
    XPM_LIBS = -lXpm
# endif /* at Sun */
#endif /* HAVE_XPM */

#ifdef HAVE_XFACE
XFACE_LIBS = -lcompface
#endif /* HAVE_XFACE */

#ifdef USAGE_TRACKING
/* Force the ut library to be statically linked, always. */
# if defined (SOLARIS2) || defined (SUNOS4)
    USAGE_TRACKING_LIBS = -Bstatic -lut -Bdynamic
# else
    USAGE_TRACKING_LIBS = -lut
# endif /* SOLARIS2 || SUNOS4 */
#endif /* USAGE_TRACKING */


#ifdef LWLIB_USES_MOTIF
TOOLKIT_LIBS = -lXm
#else /* ! LWLIB_USES_MOTIF */
TOOLKIT_LIBS = -lXaw
#endif /* ! LWLIB_USES_MOTIF */

LIBX11_LIBS = -llw $(TOOLKIT_LIBS) $(XPM_LIBS) $(XFACE_LIBS) $(USAGE_TRACKING_LIBS) 

#ifdef AIX4
#define LIBI18N -li18n
#else
#define LIBI18N
#endif /* AIX4 */

#ifdef THIS_IS_X11R6
LIBX=  $(LIBX11_LIBS) $(XMU_LIB) -lXt -lSM -lICE -lXext -lX11 LIBX11_MACHINE LIBX11_SYSTEM LIBI18N
#else
LIBX=  $(LIBX11_LIBS) $(XMU_LIB) -lXt -lXext -lX11 LIBX11_MACHINE LIBX11_SYSTEM LIBI18N
#endif

#else
# define XOBJ
# define XMU_OBJ
# define EPOCH_OBJ
# define MULE_OBJS
#endif /* HAVE_X_WINDOWS */

#ifdef HAVE_NEXTSTEP
#define NSOBJ redisplay-ns.o frame-ns.o nsselect.o event-ns.o menubar-ns.o \
	      objects-ns.o glyphs-ns.o scrollbar-ns.o toolbar-ns.o
#else
# define NSOBJ
#endif /* HAVE_NEXTSTEP */

#ifdef DYNODUMP
DYNODUMPBUILDDIR = $(dot)$(dot)/dynodump
#endif

#ifndef ORDINARY_LINK
/* Fix linking if compiled with GCC.  */
#ifdef __GNUC__

#if __GNUC__ > 1

/* Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
   places that are difficult to figure out at make time.  Fortunately,
   these same versions allow you to pass arbitrary flags on to the
   linker, so there's no reason not to use it as a linker.

   Well, it's not quite perfect.  The `-nostdlib' keeps GCC from
   searching for libraries in its internal directories, so we have to
   ask GCC explicitly where to find libgcc.a.  */

#ifndef LINKER
#define LINKER $(CC) -nostdlib
/* GCC passes any argument prefixed with -Xlinker directly to the
   linker.  See prefix-args.c for an explanation of why we don't do
   this with the shell's `for' construct.
   Note that some people don't have '.'  in their paths, so we must
   use ./prefix-args.  */
#define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
#endif /* LINKER */

#ifndef LIB_GCC
/* Ask GCC where to find libgcc.a.  */
#define LIB_GCC `$(CC) -print-libgcc-file-name`
#endif /* LIB_GCC */

GNULIB_VAR = LIB_GCC

#else /* __GNUC__ < 2 */

#ifndef LIB_GCC
#define LIB_GCC /usr/local/lib/gcc-gnulib
#endif /* LIB_GCC */
GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
#endif /* __GNUC__ < 2 */
#else /* ! defined (__GNUC__) */
GNULIB_VAR = 

#endif /* ! defined (__GNUC__) */
#endif /* not ORDINARY_LINK */

/* Specify address for ld to start loading at,
   if requested by configuration.  */
#ifdef LD_TEXT_START_ADDR
STARTFLAGS = -T LD_TEXT_START_ADDR -e __start
#endif

#ifdef ORDINARY_LINK
LD = $(CC) $(CFLAGS)
#else
#ifdef COFF_ENCAPSULATE
LD=$(CC) -nostdlib
#else /* not ORDINARY_LINK */
#ifdef LINKER
LD=LINKER
#else /* ! defined (LINKER) */
LD=ld
#endif /* ! defined (LINKER) */
#endif /* ! defined (COFF_ENCAPSULATE) */
#endif /* not ORDINARY_LINK */

/* A macro which other sections of the makefile can redefine to munge the
   flags before they're passed to LD.  This is helpful if you have
   redefined LD to something odd, like "gcc".  */
#ifndef YMF_PASS_LDFLAGS
#define YMF_PASS_LDFLAGS(flags) flags
#endif

/* Allow config.h to specify a replacement file for unexec.c.  */
#ifndef UNEXEC
#define UNEXEC unexec.o
#endif
#ifndef UNEXEC_SRC
#define UNEXEC_SRC unexec.c
#endif

#ifdef ENERGIZE
# ifdef EMACS_BTL
   BTLDIR=$(srcdir)/../btl
#  define BTLOBJS cadillac-btl.o cadillac-btl-process.o cadillac-btl-asm.o \
		  cadillac-btl-emacs.o
# else
#  define BTLOBJS
# endif /* BTL */
# if defined(FREE_CHECKING) || defined(DEBUG_INPUT_BLOCKING) || defined(DEBUG_GCPRO)
#  define FREECHECKOBJS free-hook.o
# else  /* !FREE */
#  define FREECHECKOBJS
# endif /* !FREE */
# define ENERGIZE_OBJS energize.o FREECHECKOBJS
#else /* !ENERGIZE */
# define ENERGIZE_OBJS
# define BTLOBJS
#endif /* !ENERGIZE */

#ifdef HAVE_REALPATH
#define REALPATH_OBJS
#else
#define REALPATH_OBJS realpath.o
#endif

#ifdef TOOLTALK
# define TOOLTALK_OBJS tooltalk.o
# if defined (IRIX5)
#  define LIB_TOOLTALK -ltt
# else
#  if (defined (SPARC) && !defined (USG))
#    define LIB_TOOLTALK -ltt -lI18N
#  else
#    if ((defined (SPARC) || defined(INTEL386)) && defined (USG))
#      define LIB_TOOLTALK -ltt -lce
#    endif /* ((SPARC || INTEL386) && USG) */
#  endif /* ! (SPARC && !USG) */
# endif /* !IRIX5 */
#else /* !TOOLTALK */
# define TOOLTALK_OBJS
# define LIB_TOOLTALK
#endif /* !TOOLTALK */

#if (defined(LIB_INTL) && (!(defined(I18N3) || defined(I18N4))))
  /* this should be defined by s- files, but we should not use it unless
     I18N3 or I18N4 are defined. */
# undef LIB_INTL
#endif

#ifndef LIB_INTL
# define LIB_INTL
#endif

#ifdef MOCKLISP_SUPPORT
# define MOCKLISPOBJS mocklisp.o
#else
# define MOCKLISPOBJS
#endif

#ifdef DEBUG_XEMACS
# define DEBUG_OBJS debug.o
#else
# define DEBUG_OBJS
#endif

#ifdef SUNPRO
# define SUNPRO_OBJS sunpro.o
#else
# define SUNPRO_OBJS
#endif

#ifdef HAVE_X_WINDOWS
# define X_DEVICE_OBJ device-x.o
#else
# define X_DEVICE_OBJ
#endif

#ifdef HAVE_NEXTSTEP
# define NS_DEVICE_OBJ device-ns.o
#else
# define NS_DEVICE_OBJ
#endif

#define TTY_OBJS device-tty.o event-tty.o frame-tty.o objects-tty.o \
	         redisplay-tty.o

/* lastfile must follow all files whose initialized data areas should
   be dumped as pure by dump-emacs.
 */

/* NOTE: The last line cannot be all macros, because make will barf
   if they all come out null. (Perhaps this applies to other lines as
   well?) */

obj=    device.o dynarr.o blocktype.o X_DEVICE_OBJ NS_DEVICE_OBJ TTY_OBJS \
	frame.o redisplay.o redisplay-output.o device-stream.o \
	window.o events.o event-stream.o lstream.o \
	cm.o XOBJ NSOBJ EPOCH_OBJ XMU_OBJ NAS_OBJS SOUND_OBJS \
	emacs.o keyboard.o macros.o keymap.o sysdep.o DEBUG_OBJS \
	buffer.o filelock.o insdel.o marker.o general.o \
	minibuf.o fileio.o dired.o filemode.o \
	cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
	pure.o alloc.o data.o doc.o editfns.o callint.o intl.o \
	eval.o floatfns.o fns.o print.o lread.o symbols.o getloadavg.o \
	abbrev.o syntax.o font-lock.o UNEXEC MOCKLISPOBJS bytecode.o \
	process.o callproc.o elhash.o hash.o doprnt.o \
	extents.o opaque.o REALPATH_OBJS ENERGIZE_OBJS SUNPRO_OBJS \
	signal.o sound.o faces.o specifier.o glyphs.o objects.o MULE_OBJS \
	menubar.o scrollbar.o toolbar.o md5.o TOOLTALK_OBJS

#ifdef TERMINFO
/* Used to be -ltermcap here.  If your machine needs that,
   define LIBS_TERMCAP in the m/*.h file.  */
#ifndef LIBS_TERMCAP
#define LIBS_TERMCAP -lcurses
#endif /* LIBS_TERMCAP */
termcapobj = terminfo.o
#else /* ! defined (TERMINFO) */
#ifndef LIBS_TERMCAP
#define LIBS_TERMCAP
termcapobj = termcap.o tparam.o
#else /* LIBS_TERMCAP */
termcapobj = tparam.o
#endif /* LIBS_TERMCAP */
#endif /* ! defined (TERMINFO) */


#ifdef REL_ALLOC
rallocobj = ralloc.o
rallocdocsrc = ralloc.c
#else
rallocobj =
rallocdocsrc =
#endif

#ifndef SYSTEM_MALLOC
# ifdef GNU_MALLOC  /* New GNU malloc */
#  ifdef ERROR_CHECK_MALLOC
mallocobj = gmalloc.o free-hook.o vm-limit.o
mallocdocsrc = free-hook.c
#  else
mallocobj = gmalloc.o vm-limit.o
mallocdocsrc =
#  endif
# else /* Old GNU malloc */
mallocobj = malloc.o
mallocdocsrc =
# endif /* Old GNU malloc */
#endif /* SYSTEM_MALLOC */


#ifndef HAVE_ALLOCA
allocaobj = alloca.o
#else
allocaobj =
#endif

#ifdef HAVE_X_WINDOWS

# ifdef EXTERNAL_WIDGET
#  define EXTERNAL_WIDGET_OBJ ExternalShell.o extw-Xt.o extw-Xlib.o

#  ifdef LWLIB_USES_MOTIF
#    define MOTIF_OTHER_FILES libextcli_Xm.a libextcli_Xm.so.1 
#  else
#    define MOTIF_OTHER_FILES
#endif

#  define OTHER_FILES MOTIF_OTHER_FILES \
		      libextcli_Xt.a libextcli_Xt.so.1 \
		      libextcli_Xlib.a libextcli_Xlib.so.1
# else  /* !EXTERNAL_WIDGET */
#  define EXTERNAL_WIDGET_OBJ
# endif /* !EXTERNAL_WIDGET */

# define LIBX11_OBJ EmacsFrame.o EmacsShell.o TopLevelEmacsShell.o TransientEmacsShell.o EmacsManager.o EXTERNAL_WIDGET_OBJ
# define LWLIB_DEPS $(LWLIBBUILDDIR)/liblw.a

#else /* !X */
# define LIBX11_OBJ
# define LWLIB_DEPS
#endif

/* define otherobj as list of object files that make-docfile
   should not be told about.  */
otherobj= $(termcapobj) BTLOBJS lastfile.o $(mallocobj) $(rallocobj) $(allocaobj) LIBX11_OBJ

#ifdef LISP_FLOAT_TYPE
#define FLOAT_LISP ${lispdir}prim/float-sup.elc
#else
#define FLOAT_LISP
#endif

#ifdef HAVE_X_WINDOWS
/* lisp files that are preloaded if compiled with support for X Windows */
#define X11_LISP ${lispdir}x11/x-menubar.elc ${lispdir}prim/menubar.elc \
                ${lispdir}prim/dialog.elc ${lispdir}x11/x-faces.elc \
                ${lispdir}x11/x-iso8859-1.elc ${lispdir}x11/x-mouse.elc \
                ${lispdir}prim/mouse.elc ${lispdir}prim/mode-motion.elc \
                ${lispdir}x11/x-select.elc ${lispdir}x11/x-scrollbar.elc \
		${lispdir}x11/x-misc.elc
#else
#define X11_LISP
#endif

#ifdef HAVE_NEXTSTEP
/* lisp files that are preloaded if compiled with support for NeXTstep */
#define NS_LISP 
#else
#define NS_LISP
#endif

#ifdef EPOCH
#define EPOCH_LISP ${lispdir}epoch/epoch.elc
#else
#define EPOCH_LISP
#endif

#ifdef ENERGIZE
/* Lisp files that are preloaded if compiled with support for Energize
 */
#define ENERGIZE_LISP ${lispdir}comint/gdb.elc \
                ${lispdir}comint/comint.elc ${lispdir}comint/shell.elc \
                ${lispdir}utils/ring.elc ${lispdir}packages/compile.elc \
                ${lispdir}modes/view-less.elc ${lispdir}emulators/evi.elc \
		${lispdir}packages/font-lock.elc ${lispdir}packages/fast-lock.elc \
                ${lispdir}dired/dired.elc ${lispdir}dired/dired-x.elc \
                ${lispdir}dired/dired-lucid.elc ${lispdir}prim/userlock.elc \
                ${lispdir}energize/energize-init.elc \
                ${lispdir}energize/energize-mode.elc \
                ${lispdir}energize/energize-windows.elc \
                ${lispdir}energize/energize-menus.elc \
                ${lispdir}energize/energize-shell.elc \
                ${lispdir}energize/energize-visit-use.elc \
                ${lispdir}energize/energize-vi.elc \
                ${lispdir}energize/energize-font-lock.elc \
                ${lispdir}energize/energize-advice.elc
#else
#define ENERGIZE_LISP
#endif

#ifdef SUNPRO
/* Lisp files that are preloaded if compiled with support for SunPro
   products */
#define SUNPRO_LISP ${lispdir}packages/sccs.elc \
		${lispdir}sunpro/sunpro-init.elc \
		${lispdir}sunpro/sunpro-menubar.elc \
		${lispdir}sunpro/sunpro-keys.elc \
		${lispdir}eos/sun-eos-init.elc \
		${lispdir}eos/sun-eos-load.elc \
		${lispdir}eos/sun-eos-common.elc \
		${lispdir}eos/sun-eos-editor.elc \
		${lispdir}eos/sun-eos-browser.elc \
		${lispdir}eos/sun-eos-debugger.elc \
		${lispdir}eos/sun-eos-debugger-extra.elc \
		${lispdir}comint/comint.elc \
		${lispdir}utils/ring.elc \
		${lispdir}eos/sun-eos-toolbar.elc \
		${lispdir}eos/sun-eos-menubar.elc \
		${lispdir}utils/annotations.elc \
		${lispdir}/eos/loaddefs-eos.el
#else
#define SUNPRO_LISP	${lispdir}prim/loaddefs.el 
#endif

#ifdef TOOLTALK
/* Lisp files that are preloaded if compiled with support for Tooltalk
 */
#define TOOLTALK_LISP ${lispdir}tooltalk/tooltalk-macros.elc \
		${lispdir}tooltalk/tooltalk-util.elc \
		${lispdir}tooltalk/tooltalk-init.elc
#else
#define TOOLTALK_LISP
#endif

#ifdef LISP_COMMAND_LOOP
#define CMDLOOP_LISP ${lispdir}prim/cmdloop1.elc
#else
#define CMDLOOP_LISP
#endif

/* List of Lisp files loaded into the dumped Emacs.
   Every file that is loaded from loadup.el must be enumerated
   here, or the functions won't have have docstrings.
   This is dumb, this list should be generated automatically.
   [Note: "version.el" is included in the doc separately, but is not listed 
    here because we don't want things to appear to be out-of-date just 
    because the version number has been incremented. -- D.N.G. 8/28/93]
 */
/* loaddefs is now included handled by the SUNPRO_LISP define because
   SparcWorks support requires an altered version. */
/* #### prim/menubar.el is temporarily dumped only if X support is
   included.  This should change once we have some support for menus
   in tty environments. */
lisp=   ${lispdir}paths.el \
        ${lispdir}prim/loadup.el ${lispdir}prim/subr.elc \
        ${lispdir}prim/cmdloop.elc CMDLOOP_LISP \
        ${lispdir}prim/keymap.elc ${lispdir}prim/syntax.elc \
        ${lispdir}prim/minibuf.elc ${lispdir}prim/faces.elc \
	${lispdir}prim/objects.elc ${lispdir}prim/process.elc \
        ${lispdir}prim/keydefs.el ${lispdir}prim/device.elc \
	${lispdir}prim/obsolete.elc ${lispdir}prim/glyphs.elc \
	${lispdir}prim/extents.elc ${lispdir}prim/backquote.elc \
        ${lispdir}prim/simple.elc ${lispdir}prim/help.elc \
        ${lispdir}prim/files.elc ${lispdir}prim/indent.elc \
	${lispdir}prim/frame.elc ${lispdir}prim/toolbar.elc \
        ${lispdir}prim/window.elc ${lispdir}prim/startup.elc \
        ${lispdir}prim/lisp.elc ${lispdir}prim/page.elc \
        ${lispdir}prim/register.elc ${lispdir}iso/iso8859-1.elc \
        ${lispdir}prim/paragraphs.elc ${lispdir}modes/lisp-mode.elc \
        ${lispdir}modes/text-mode.elc ${lispdir}prim/fill.elc \
        ${lispdir}prim/isearch-mode.elc ${lispdir}prim/misc.elc \
	${lispdir}modes/cc-mode.elc ${lispdir}packages/vc-hooks.elc \
        ${lispdir}prim/replace.elc ${lispdir}prim/specifier.elc \
        ${lispdir}packages/buff-menu.elc SUNPRO_LISP \
        ${lispdir}bytecomp/bytecomp-runtime.elc FLOAT_LISP EPOCH_LISP \
        ${lispdir}prim/itimer.elc ${lispdir}ediff/ediff-hook.elc \
	${lispdir}prim/scrollbar.elc \
	${lispdir}modes/abbrev.elc X11_LISP NS_LISP ENERGIZE_LISP TOOLTALK_LISP

/* Other Lisp files that are not dumped out but where it's convenient
   (or required?) for them to be byte-compiled early, before xemacs
   is dumped out.  Don't list them in ${lisp} because then the doc-snarfing
   routines get confused. */
otherlisp= ${lispdir}bytecomp/bytecomp.elc \
	   ${lispdir}bytecomp/byte-optimize.elc \
	   ${lispdir}utils/advice.elc \
	   ${lispdir}term/x-win.elc

LIBES = NAS_LIBS SOUND_LIBS SOCKS_LIBS ENERGIZE_LIBS LIB_TOOLTALK $(LIBX) \
	LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP LIB_INTL QUANTIFY_LIBS \
	LIBS_DEBUG $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)

/* Enable recompilation of certain other files depending on system type.  */

#ifndef OTHER_FILES
#define OTHER_FILES
#endif

/* Enable inclusion of object files in temacs depending on system type.  */
#ifndef OBJECTS_SYSTEM
#define OBJECTS_SYSTEM
#endif

#ifndef OBJECTS_MACHINE
#define OBJECTS_MACHINE
#endif

all: xemacs OTHER_FILES

/* "make release" to build "xemacs" with an incremented version number;
   "make xemacs" to just build "xemacs" without incrementing the version. */

#ifdef I18N3
# define MOFILE ${modir}emacs.mo
#else
# define MOFILE
#endif

LOADPATH =  EMACSLOADPATH="${lispdir}prim"  
DUMPENV = $(LOADPATH)

release: temacs ${lisp} ${libsrc}DOC MOFILE OTHER_FILES
#ifdef CANNOT_DUMP
	ln temacs xemacs
#else
#ifdef HAVE_SHM
	-if [ -w ${srcdir}/../lisp ]; then \
	  w=`pwd`; cd ${srcdir}; $${w}/temacs -nl -batch -l inc-vers; \
	else true; fi
	$(DUMPENV) ./temacs -nl -batch -l loadup.el dump
#else /* ! defined (HAVE_SHM) */
	-if [ -w ${srcdir}/../lisp ]; then \
	  w=`pwd`; cd ${srcdir}; $${w}/temacs -batch -l inc-vers; \
	else true; fi
	$(DUMPENV) ./temacs -batch -l loadup.el dump
#endif /* ! defined (HAVE_SHM) */
	touch release
#endif /* ! defined (CANNOT_DUMP) */

xemacs: temacs ${libsrc}DOC MOFILE OTHER_FILES
	$(DUMPENV) ./temacs -batch -l loadup.el dump

xemacs-no-site-file: temacs ${libsrc}DOC MOFILE OTHER_FILES
	$(DUMPENV) ./temacs -batch -l loadup.el dump no-site-file

obj_src = $(obj:.o=.c)

${libsrc}DOC: ${libsrc}make-docfile ${obj_src} ${lisp}
	rm -f ${libsrc}DOC
	${libsrc}make-docfile -d ${srcdir} ${obj_src} ${mallocdocsrc} \
		${rallocdocsrc} ${lispdir}version.el ${lisp} > ${libsrc}DOC

dump_elcs: dump-elcs

dump-elcs: temacs
	EMACSLOADPATH="${lispdir}prim" ./temacs -batch -l ../prim/update-elc.el $(lisp) $(otherlisp)

#ifdef I18N3

# if defined(SPARC) && !defined(USG)
   xgettext=		 /usr/openwin/bin/xgettext
   xgettext_args=	 -o emacs -m_X messages
   msgfmt=		 /usr/openwin/bin/msgfmt
# else
   xgettext=		 xgettext
   xgettext_args=	 -s -d emacs -M_X messages
   msgfmt=		 msgfmt
#endif

${modir}emacs.po: ${libsrc}make-msgfile ${libsrc}make-po ${obj} ${lisp}
	${libsrc}make-msgfile -o ${libsrc}messages ${obj} ${lisp} ${otherlisp}
	cd ${libsrc}; ${xgettext} ${xgettext_args}
	-cd ${modir}; rm -f emacs.po
	cd ${libsrc}; ${libsrc}make-po -a ${modir}emacs.po DOC

${modir}emacs.mo: ${modir}emacs.po
	cd ${modir}; ${msgfmt} -o emacs.mo emacs.po

${libsrc}make-msgfile:
	cd ${libsrc}; ${MAKE} ${MFLAGS} make-msgfile

${libsrc}make-po:
	cd ${libsrc}; ${MAKE} ${MFLAGS} make-po

#endif /* I18N3 */

${libsrc}make-docfile:
	cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile

/* Lint Section */
LINT.c=$(LINT) $(LINTFLAGS) $(LINTINCLUDES) 
LINTFILES= $(obj:.o=.ln)
LINTINCLUDES = -Demacs -DHAVE_CONFIG_H $(MYCPPFLAG) -I. \
	   -I${srcdir} LCCFLAGS C_SWITCH_MACHINE C_SWITCH_SYSTEM \
	   C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE \
	   C_SWITCH_X_SYSTEM $(LIBX11_INCLUDES)
LINTFLAGS= -fd -m -p -s -u -v -x
lint: $(LINTFILES)
	$(LINT.c) $(LINTFILES)
/* end of Lint Section */

force:
$(LWLIBBUILDDIR)/liblw.a: force
	cd ${LWLIBBUILDDIR}; ${MAKE} ${MFLAGS}

#ifdef DYNODUMP
$(DYNODUMPBUILDDIR)/dynodump.so: force
	cd ${DYNODUMPBUILDDIR}; ${MAKE} ${MFLAGS}
#endif

/* Some systems define this to cause parallel Make-ing.  */
#ifndef MAKE_PARALLEL
#define MAKE_PARALLEL
#endif

#ifdef DYNODUMP
#define DYNODUMP_DEPS $(DYNODUMPBUILDDIR)/dynodump.so
#else
#define DYNODUMP_DEPS
#endif

#define TEMACS_DEPS       MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) \
			  ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE \
			  LWLIB_DEPS DYNODUMP_DEPS prefix-args

#define TEMACS_LINK_ARGS  YMF_PASS_LDFLAGS \
		(${STARTFLAGS} ${LDFLAGS} LD_SWITCH_CALL_SHARED) -o $@ \
		${STARTFILES} ${obj} ${otherobj} OBJECTS_SYSTEM \
		OBJECTS_MACHINE ${LIBES}

temacs_deps: TEMACS_DEPS

temacs: TEMACS_DEPS
	$(LD) LCCLINK TEMACS_LINK_ARGS

cemacs: TEMACS_DEPS
	$(LD) $(ENERGIZEP) TEMACS_LINK_ARGS

puremacs: TEMACS_DEPS
	$(PURIFY_PROG) $(LD) TEMACS_LINK_ARGS

quantmacs: TEMACS_DEPS
	$(QUANTIFY_PROG) $(LD) TEMACS_LINK_ARGS

covmacs: TEMACS_DEPS
	$(PURECOV_PROG) $(LD) TEMACS_LINK_ARGS

TopLevelEmacsShell.o : ${srcdir}/EmacsShell-sub.c
	$(CC) -c $(ALL_CFLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
	mv EmacsShell-sub.o TopLevelEmacsShell.o

TransientEmacsShell.o : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o
	$(CC) -c $(ALL_CFLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c
	mv EmacsShell-sub.o TransientEmacsShell.o

#ifdef EXTERNAL_WIDGET

#if USE_GCC
# define PIC_ARG -fpic
#else
# ifdef IRIX
#  define PIC_ARG -KPIC
# else
#  define PIC_ARG -K pic
# endif
#endif

# define EXTERNAL_CLIENT_MOTIF_OBJS ExternalClient-Xm.o extw-Xt.o extw-Xlib.o
# define EXTERNAL_CLIENT_XT_OBJS    ExternalClient-Xt.o extw-Xt.o extw-Xlib.o
# define EXTERNAL_CLIENT_XLIB_OBJS  ExternalClient-Xlib.o extw-Xlib.o

ExternalClient-Xm.o: ${srcdir}/ExternalClient.c ExternalClient-Xt.o
	$(CC) -c PIC_ARG $(ALL_CFLAGS) -DEXTW_USES_MOTIF ${srcdir}/ExternalClient.c
	mv ExternalClient.o ExternalClient-Xm.o

ExternalClient-Xt.o: ${srcdir}/ExternalClient.c
	$(CC) -c PIC_ARG $(ALL_CFLAGS) ${srcdir}/ExternalClient.c
	mv ExternalClient.o ExternalClient-Xt.o

ExternalClient-Xlib.o: ${srcdir}/ExternalClient-Xlib.c
	$(CC) -c PIC_ARG $(ALL_CFLAGS) ${srcdir}/ExternalClient-Xlib.c

extw-Xt.o: ${srcdir}/extw-Xt.c
	$(CC) -c PIC_ARG $(ALL_CFLAGS) ${srcdir}/extw-Xt.c

extw-Xlib.o: ${srcdir}/extw-Xlib.c
	$(CC) -c PIC_ARG $(ALL_CFLAGS) ${srcdir}/extw-Xlib.c

libextcli_Xm.a: EXTERNAL_CLIENT_MOTIF_OBJS
	ar r libextcli_Xm.a EXTERNAL_CLIENT_MOTIF_OBJS

libextcli_Xt.a: EXTERNAL_CLIENT_XT_OBJS
	ar r libextcli_Xt.a EXTERNAL_CLIENT_XT_OBJS

libextcli_Xlib.a: EXTERNAL_CLIENT_XLIB_OBJS
	ar r libextcli_Xlib.a EXTERNAL_CLIENT_XLIB_OBJS

# ifdef USG5
#  ifdef USE_GCC
#   define EXTW_LINK(objs, output) $(CC) -shared objs -Xlinker -z -Xlinker text -o output
#  elif defined (IRIX)
#   define EXTW_LINK(objs, output) $(LD) -shared -g -check_registry ${TOOLROOT}/usr/lib/so_locations objs -o output
#  else /* not IRIX, not USE_GCC */
#   define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output
#  endif /* not IRIX, not USE_GCC */
# else /* not USG5 */
#  if defined (DEC_ALPHA) && defined (OSF1)
#   define EXTW_LINK(objs, output) $(LD) $(LDFLAGS) LD_SWITCH_SHARED -d objs -o output $(LIBES)
#  else /* !(DEC_ALPHA && OSF1) */
#   define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output
#  endif /* !(DEC_ALPHA && OSF1) */
# endif /* not USG5 */

libextcli_Xm.so.1: EXTERNAL_CLIENT_MOTIF_OBJS
	EXTW_LINK(EXTERNAL_CLIENT_MOTIF_OBJS, libextcli_Xm.so.1)

libextcli_Xt.so.1: EXTERNAL_CLIENT_XT_OBJS
	EXTW_LINK(EXTERNAL_CLIENT_XT_OBJS, libextcli_Xt.so.1)

libextcli_Xlib.so.1: EXTERNAL_CLIENT_XLIB_OBJS
	EXTW_LINK(EXTERNAL_CLIENT_XLIB_OBJS, libextcli_Xlib.so.1)

#endif /* EXTERNAL_WIDGET */

prefix-args: ${srcdir}/prefix-args.c $(config_h)
	$(CC) $(ALL_CFLAGS) ${srcdir}/prefix-args.c -o prefix-args

/* These are needed for C compilation, on the systems that need them */
#ifdef NEED_CPP
CPP = ./localcpp
localcpp:
	cd ${cppdir}; ${MAKE} ${MFLAGS} EMACS=-DEMACS
	ln ${cppdir}cpp localcpp  /* Name where ALL_CFLAGS will refer to it */
/* cc appears to be cretinous and require all of these to exist
   if -B is specified -- we can't use one local pass and let the
   others be the standard ones.  What a loser.
   We can't even use ln, since they are probably
   on different disks.  */
	cp /lib/ccom localccom
	-cp /lib/optim localoptim
	-cp /lib/c2 localc2
	cp /bin/as localas
#else /* ! defined (NEED_CPP) */
CPP = $(CC) -E
#endif /* ! defined (NEED_CPP) */

#ifdef SHORTNAMES
shortnames:
	cd ${shortnamesdir}; ${MAKE} ${MFLAGS}
#endif

config.h: ${srcdir}/config.h.in
	@echo "The file config.h needs to be set up from config.h.in."
	@echo "Consult the file \`INSTALL' for instructions for building Emacs."
	exit 1

paths.h: ${srcdir}/paths.h.in
	@echo "The file paths.h needs to be set up from paths.h.in."
	@echo "Consult the file \`INSTALL' for instructions for building Emacs."
	exit 1

Emacs.ad.h: ${srcdir}/${etcdir}Emacs.ad
	@echo "The file Emacs.ad.h needs to be set up from ${srcdir}/${etcdir}Emacs.ad"
	@echo "Consult the file \`INSTALL' for instructions for building Emacs."
	exit 1

/* Some machines have alloca built-in.
   They should define HAVE_ALLOCA, or may just let alloca.s
   be used but generate no code.
   Some have it written in assembler in alloca.s.
   Some use the C version in alloca.c (these define C_ALLOCA in config.h).
   */

#ifdef C_ALLOCA
/* We could put something in alloca.c to #define free and malloc
   whenever emacs was #defined, but that's not appropriate for all
   users of alloca in Emacs.  Check out ../lib-src/getopt.c.  */
alloca.o : ${srcdir}/alloca.c
	$(CC) -c $(CPPFLAGS) -Dfree=xfree -Dmalloc=xmalloc \
	$(ALL_CFLAGS) $<
#else
#ifndef HAVE_ALLOCA
alloca.o : ${srcdir}/alloca.s config.h
/* $(CPP) is cc -E, which may get confused by filenames
   that do not end in .c.  So copy file to a safe name.  */
	cp ${srcdir}/alloca.s allocatem.c
/* Remove any ^L, blank lines, and preprocessor comments,
   since some assemblers barf on them.  Use a different basename for the
   output file, since some stupid compilers (Green Hill's) use that
   name for the intermediate assembler file. */
	$(CPP) $(CPPFLAGS) $(ALL_CFLAGS) allocatem.c | \
	sed -e 's///' -e 's/^#.*//' | \
	sed -n -e '/^..*$$/p' > allocax.s
	-rm -f alloca.o
/* Xenix, in particular, needs to run assembler via cc.  */
	$(CC) -c allocax.s
	mv allocax.o alloca.o
	rm -f allocax.s allocatem.c
#endif /* HAVE_ALLOCA */
#endif /* ! defined (C_ALLOCA) */

#ifdef USE_LCC  /* lcc doesn't do asm() yet */
crt0.o: ${srcdir}/crt0.c
	gcc -c -g -Demacs $<
#endif /* USE_LCC */

#ifdef EMACS_BTL
BTL_INCLUDES=-I$(BTLDIR)
# define BTL_COMPILE \
	-DEMACS_BTL -D`lucid-arch` -I. $(BTL_INCLUDES) $(BTLDIR)/$(@:.o=.c)

cadillac-btl.o cadillac-btl-process.o cadillac-btl-emacs.o:
	$(CC) $(CFLAGS) -c BTL_COMPILE
# ifndef USE_LCC
cadillac-btl-asm.o:
	$(CC) $(CFLAGS) -c BTL_COMPILE
# else  /* lcc doesn't do asm() yet */
cadillac-btl-asm.o:
	gcc -O -g       -c BTL_COMPILE
# endif /* lcc */
#endif /* EMACS_BTL */

#ifdef ENERGIZE
energize.o: ${srcdir}/energize.c
	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) ENERGIZE_INCLUDES $(BTL_INCLUDES) $<
#endif /* ENERGIZE */

#ifdef HAVE_NATIVE_SOUND
# if defined (SUNOS4) || defined (SOLARIS2)
sunplay.o: ${srcdir}/sunplay.c
	$(CC) -c $(ALL_CFLAGS) SOUND_CFLAGS $<
# endif /* SUNOS4 or SOLARIS2 */
# ifdef hp9000s800
hpplay.o: ${srcdir}/hpplay.c
	$(CC) -c -Demacs $(ALL_CFLAGS) SOUND_CFLAGS $<
# endif /* hp9000s800 */
#endif /* HAVE_NATIVE_SOUND */

#ifdef HAVE_NAS_SOUND
nas.o: ${srcdir}/nas.c
	$(CC) -c $(ALL_CFLAGS) NAS_CFLAGS $<
#endif /* HAVE_NAS_SOUND */

/* System-specific programs to be made.
   OTHER_FILES, OBJECTS_SYSTEM and OBJECTS_MACHINE
   select which of these should be compiled.  */

${libsrc}emacstool: ${libsrc}emacstool.c
	cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool
mostlyclean:
	rm -f temacs puremacs quantmacs prefix-args xmakefile* core depend.* \#* *.o
	rm -f ${libsrc}DOC
clean: mostlyclean
	rm -f xemacs libextcli*
/**/# This is used in making a distribution.
/**/# Do not use it on development directories!
distclean: clean versionclean
	rm -f config.h paths.h Emacs.ad.h Makefile Makefile.in .pure
realclean: distclean
	rm -f TAGS
versionclean:
	-rm -f xemacs emacs-* ${libsrc}DOC*
extraclean: realclean
	-rm -f *~ \#* m/?*~ s/?*~

/* The rule for the [sm] files has to be written a little funny to
   avoid looking like a C comment to CPP. */
SOURCES = *.[chm] *.pswm [sm]/?* COPYING paths.h.in Makefile.in.in \
	config.h.in README COPYING ChangeLog vms.pp-trans
unlock:
	chmod u+w $(SOURCES)

relock:
	chmod -w $(SOURCES)

depend:
	: > depend.tmp
	makedepend -f depend.tmp -Dsubprocesses -DMOCKLISP_SUPPORT -DHAVE_X_WINDOWS -- $(CPPFLAGS) $(ALL_CFLAGS) -- *.c
	sh ${libsrc}process-depends.sh < depend.tmp > depend.out

/* Manually-generated dependencies (makedepend misbehaves on these) */

/* (actually makedepend does OK on these but we want to conditionalize
   them) */
#ifdef EXTERNAL_WIDGET
ExternalClient-Xlib.o: extw-Xlib.h
ExternalClient-Xm.o: config.h
ExternalClient-Xm.o: xintrinsicp.h
ExternalClient-Xm.o: ExternalClient.h
ExternalClient-Xm.o: ExternalClientP.h
ExternalClient-Xm.o: extw-Xlib.h
ExternalClient-Xm.o: extw-Xt.h
ExternalClient-Xt.o: config.h
ExternalClient-Xt.o: xintrinsicp.h
ExternalClient-Xt.o: ExternalClient.h
ExternalClient-Xt.o: ExternalClientP.h
ExternalClient-Xt.o: extw-Xlib.h
ExternalClient-Xt.o: extw-Xt.h
ExternalShell.o: ExternalShell.h
ExternalShell.o: ExternalShellP.h
ExternalShell.o: config.h
ExternalShell.o: extw-Xlib.h
ExternalShell.o: extw-Xt.h
ExternalShell.o: xintrinsic.h
ExternalShell.o: xintrinsicp.h
extw-Xlib.o: config.h
extw-Xlib.o: extw-Xlib.h
extw-Xt.o: config.h
extw-Xt.o: extw-Xlib.h
extw-Xt.o: extw-Xt.h
#endif

#ifdef EMACS_BTL
cadillac-btl.o: $(BTLDIR)/cadillac-btl.c
cadillac-btl.o: $(BTLDIR)/cadillac-btl.h
cadillac-btl.o: $(BTLDIR)/cadillac-btl-extern.h
cadillac-btl-asm.o: $(BTLDIR)/cadillac-btl-asm.c
cadillac-btl-asm.o: $(BTLDIR)/cadillac-btl.h
cadillac-btl-asm.o: $(BTLDIR)/cadillac-btl-extern.h
cadillac-btl-emacs.o: $(BTLDIR)/cadillac-btl-extern.h
cadillac-btl-process.o: $(BTLDIR)/cadillac-btl-process.c
cadillac-btl-process.o: $(BTLDIR)/cadillac-btl.h
cadillac-btl-process.o: $(BTLDIR)/cadillac-btl-extern.h
#endif /* EMACS_BTL */

/* (makedepend definitely misbehaves on these) */
sgiplay.o: config.h
sgiplay.o: libst.h
unexconvex.o: getpagesize.h
unexec.o: getpagesize.h
unexaix.o: config.h
unexalpha.o: config.h
unexapollo.o: config.h
unexconvex.o: config.h
unexec.o: config.h
unexelf.o: config.h
unexenix.o: config.h
unexfreebsd.o: config.h
unexhp9k3.o: config.h
unexhp9k800.o: config.h
unexmips.o: config.h
unexsunos4.o: config.h

/* Dependencies generated by 'make depend' */

EmacsFrame.o: $(LWLIBSRCDIR)/lwlib.h
EmacsFrame.o: EmacsFrame.h
EmacsFrame.o: EmacsFrameP.h
EmacsFrame.o: EmacsManager.h
EmacsFrame.o: blocktype.h
EmacsFrame.o: config.h
EmacsFrame.o: device-x.h
EmacsFrame.o: device.h
EmacsFrame.o: dynarr.h
EmacsFrame.o: faces.h
EmacsFrame.o: frame-x.h
EmacsFrame.o: frame.h
EmacsFrame.o: glyphs-x.h
EmacsFrame.o: glyphs.h
EmacsFrame.o: objects-x.h
EmacsFrame.o: objects.h
EmacsFrame.o: redisplay.h
EmacsFrame.o: scrollbar.h
EmacsFrame.o: specifier.h
EmacsFrame.o: toolbar.h
EmacsFrame.o: xintrinsic.h
EmacsFrame.o: xintrinsicp.h
EmacsFrame.o: xmprimitivep.h
EmacsFrame.o: xmu.h
EmacsManager.o: EmacsManager.h
EmacsManager.o: EmacsManagerP.h
EmacsManager.o: config.h
EmacsManager.o: xintrinsicp.h
EmacsManager.o: xmmanagerp.h
EmacsShell-sub.o: EmacsShell.h
EmacsShell-sub.o: EmacsShellP.h
EmacsShell-sub.o: config.h
EmacsShell-sub.o: xintrinsic.h
EmacsShell-sub.o: xintrinsicp.h
EmacsShell.o: EmacsShell.h
EmacsShell.o: config.h
EmacsShell.o: xintrinsicp.h
abbrev.o: blocktype.h
abbrev.o: buffer.h
abbrev.o: bufslots.h
abbrev.o: commands.h
abbrev.o: config.h
abbrev.o: dynarr.h
abbrev.o: insdel.h
abbrev.o: redisplay.h
abbrev.o: scrollbar.h
abbrev.o: window.h
alloc.o: backtrace.h
alloc.o: blocktype.h
alloc.o: buffer.h
alloc.o: bufslots.h
alloc.o: bytecode.h
alloc.o: config.h
alloc.o: device-x.h
alloc.o: device.h
alloc.o: dynarr.h
alloc.o: elhash.h
alloc.o: events.h
alloc.o: extents.h
alloc.o: frame.h
alloc.o: puresize.h
alloc.o: redisplay.h
alloc.o: scrollbar.h
alloc.o: specifier.h
alloc.o: systime.h
alloc.o: toolbar.h
alloc.o: window.h
alloc.o: xintrinsic.h
alloca.o: config.h
blocktype.o: blocktype.h
blocktype.o: config.h
blocktype.o: dynarr.h
buffer.o: blocktype.h
buffer.o: buffer.h
buffer.o: bufslots.h
buffer.o: commands.h
buffer.o: config.h
buffer.o: device.h
buffer.o: dynarr.h
buffer.o: extents.h
buffer.o: faces.h
buffer.o: frame.h
buffer.o: insdel.h
buffer.o: process.h
buffer.o: redisplay.h
buffer.o: scrollbar.h
buffer.o: specifier.h
buffer.o: syntax.h
buffer.o: sysdep.h
buffer.o: sysfile.h
buffer.o: toolbar.h
buffer.o: window.h
bytecode.o: blocktype.h
bytecode.o: buffer.h
bytecode.o: bufslots.h
bytecode.o: config.h
bytecode.o: dynarr.h
bytecode.o: syntax.h
callint.o: blocktype.h
callint.o: buffer.h
callint.o: bufslots.h
callint.o: bytecode.h
callint.o: commands.h
callint.o: config.h
callint.o: dynarr.h
callint.o: insdel.h
callint.o: redisplay.h
callint.o: scrollbar.h
callint.o: window.h
callproc.o: blocktype.h
callproc.o: buffer.h
callproc.o: bufslots.h
callproc.o: commands.h
callproc.o: config.h
callproc.o: dynarr.h
callproc.o: insdel.h
callproc.o: lstream.h
callproc.o: mule.h
callproc.o: paths.h
callproc.o: process.h
callproc.o: redisplay.h
callproc.o: scrollbar.h
callproc.o: sysdep.h
callproc.o: sysfile.h
callproc.o: sysproc.h
callproc.o: systime.h
callproc.o: systty.h
callproc.o: window.h
casefiddle.o: blocktype.h
casefiddle.o: buffer.h
casefiddle.o: bufslots.h
casefiddle.o: commands.h
casefiddle.o: config.h
casefiddle.o: dynarr.h
casefiddle.o: insdel.h
casefiddle.o: syntax.h
casetab.o: blocktype.h
casetab.o: buffer.h
casetab.o: bufslots.h
casetab.o: config.h
casetab.o: dynarr.h
cm.o: blocktype.h
cm.o: config.h
cm.o: device-tty.h
cm.o: device.h
cm.o: dynarr.h
cm.o: frame.h
cm.o: redisplay.h
cm.o: scrollbar.h
cm.o: specifier.h
cm.o: systty.h
cm.o: toolbar.h
cmds.o: blocktype.h
cmds.o: buffer.h
cmds.o: bufslots.h
cmds.o: commands.h
cmds.o: config.h
cmds.o: dynarr.h
cmds.o: insdel.h
cmds.o: syntax.h
crt0.o: config.h
data.o: blocktype.h
data.o: bytecode.h
data.o: config.h
data.o: dynarr.h
data.o: sysfloat.h
debug.o: blocktype.h
debug.o: bytecode.h
debug.o: config.h
debug.o: debug.h
debug.o: dynarr.h
device-stream.o: blocktype.h
device-stream.o: config.h
device-stream.o: device-stream.h
device-stream.o: device.h
device-stream.o: dynarr.h
device-stream.o: events.h
device-stream.o: frame.h
device-stream.o: redisplay.h
device-stream.o: scrollbar.h
device-stream.o: specifier.h
device-stream.o: sysdep.h
device-stream.o: systime.h
device-stream.o: toolbar.h
device-tty.o: blocktype.h
device-tty.o: config.h
device-tty.o: device-stream.h
device-tty.o: device-tty.h
device-tty.o: device.h
device-tty.o: dynarr.h
device-tty.o: events.h
device-tty.o: faces.h
device-tty.o: frame.h
device-tty.o: redisplay.h
device-tty.o: scrollbar.h
device-tty.o: specifier.h
device-tty.o: sysdep.h
device-tty.o: systime.h
device-tty.o: systty.h
device-tty.o: toolbar.h
device-x.o: $(LWLIBSRCDIR)/lwlib.h
device-x.o: blocktype.h
device-x.o: buffer.h
device-x.o: bufslots.h
device-x.o: config.h
device-x.o: device-x.h
device-x.o: device.h
device-x.o: dynarr.h
device-x.o: events.h
device-x.o: faces.h
device-x.o: frame-x.h
device-x.o: frame.h
device-x.o: glyphs-x.h
device-x.o: glyphs.h
device-x.o: objects-x.h
device-x.o: objects.h
device-x.o: redisplay.h
device-x.o: scrollbar.h
device-x.o: specifier.h
device-x.o: sysdep.h
device-x.o: sysfile.h
device-x.o: systime.h
device-x.o: toolbar.h
device-x.o: window.h
device-x.o: xgccache.h
device-x.o: xintrinsic.h
device-x.o: xintrinsicp.h
device-x.o: xmu.h
device.o: blocktype.h
device.o: buffer.h
device.o: bufslots.h
device.o: config.h
device.o: device.h
device.o: dynarr.h
device.o: elhash.h
device.o: events.h
device.o: faces.h
device.o: frame.h
device.o: keymap.h
device.o: redisplay.h
device.o: scrollbar.h
device.o: specifier.h
device.o: systime.h
device.o: toolbar.h
device.o: window.h
dired.o: blocktype.h
dired.o: buffer.h
dired.o: bufslots.h
dired.o: commands.h
dired.o: config.h
dired.o: dynarr.h
dired.o: elhash.h
dired.o: ndir.h
dired.o: regex.h
dired.o: sysdir.h
dired.o: sysfile.h
doc.o: blocktype.h
doc.o: buffer.h
doc.o: bufslots.h
doc.o: bytecode.h
doc.o: config.h
doc.o: dynarr.h
doc.o: insdel.h
doc.o: keymap.h
doc.o: sysfile.h
doprnt.o: blocktype.h
doprnt.o: buffer.h
doprnt.o: bufslots.h
doprnt.o: config.h
doprnt.o: dynarr.h
doprnt.o: lstream.h
dynarr.o: blocktype.h
dynarr.o: config.h
dynarr.o: dynarr.h
editfns.o: blocktype.h
editfns.o: buffer.h
editfns.o: bufslots.h
editfns.o: commands.h
editfns.o: config.h
editfns.o: device.h
editfns.o: dynarr.h
editfns.o: events.h
editfns.o: extents.h
editfns.o: frame.h
editfns.o: insdel.h
editfns.o: redisplay.h
editfns.o: scrollbar.h
editfns.o: specifier.h
editfns.o: sysdep.h
editfns.o: syspwd.h
editfns.o: systime.h
editfns.o: toolbar.h
editfns.o: window.h
elhash.o: blocktype.h
elhash.o: bytecode.h
elhash.o: config.h
elhash.o: dynarr.h
elhash.o: elhash.h
elhash.o: hash.h
emacs.o: backtrace.h
emacs.o: blocktype.h
emacs.o: commands.h
emacs.o: config.h
emacs.o: device.h
emacs.o: dynarr.h
emacs.o: process.h
emacs.o: sysdep.h
emacs.o: sysfile.h
emacs.o: systime.h
emacs.o: systty.h
energize.o: config.h
epoch.o: blocktype.h
epoch.o: config.h
epoch.o: device.h
epoch.o: dynarr.h
epoch.o: events.h
epoch.o: frame-x.h
epoch.o: frame.h
epoch.o: objects-x.h
epoch.o: objects.h
epoch.o: scrollbar.h
epoch.o: specifier.h
epoch.o: systime.h
epoch.o: toolbar.h
eval.o: backtrace.h
eval.o: blocktype.h
eval.o: buffer.h
eval.o: bufslots.h
eval.o: bytecode.h
eval.o: commands.h
eval.o: config.h
eval.o: dynarr.h
eval.o: opaque.h
event-Xt.o: $(LWLIBSRCDIR)/lwlib.h
event-Xt.o: Emacs.ad.h
event-Xt.o: EmacsFrame.h
event-Xt.o: blocktype.h
event-Xt.o: commands.h
event-Xt.o: config.h
event-Xt.o: device-tty.h
event-Xt.o: device-x.h
event-Xt.o: device.h
event-Xt.o: dynarr.h
event-Xt.o: events.h
event-Xt.o: frame-x.h
event-Xt.o: frame.h
event-Xt.o: process.h
event-Xt.o: redisplay.h
event-Xt.o: scrollbar.h
event-Xt.o: specifier.h
event-Xt.o: sysproc.h
event-Xt.o: systime.h
event-Xt.o: systty.h
event-Xt.o: toolbar.h
event-Xt.o: xintrinsic.h
event-Xt.o: xintrinsicp.h
event-stream.o: blocktype.h
event-stream.o: buffer.h
event-stream.o: bufslots.h
event-stream.o: commands.h
event-stream.o: config.h
event-stream.o: device-tty.h
event-stream.o: device.h
event-stream.o: dynarr.h
event-stream.o: events.h
event-stream.o: frame.h
event-stream.o: insdel.h
event-stream.o: keymap.h
event-stream.o: macros.h
event-stream.o: opaque.h
event-stream.o: process.h
event-stream.o: redisplay.h
event-stream.o: scrollbar.h
event-stream.o: specifier.h
event-stream.o: sysdep.h
event-stream.o: sysproc.h
event-stream.o: systime.h
event-stream.o: systty.h
event-stream.o: toolbar.h
event-stream.o: window.h
event-tty.o: blocktype.h
event-tty.o: config.h
event-tty.o: device-tty.h
event-tty.o: device.h
event-tty.o: dynarr.h
event-tty.o: events.h
event-tty.o: frame.h
event-tty.o: process.h
event-tty.o: scrollbar.h
event-tty.o: specifier.h
event-tty.o: sysproc.h
event-tty.o: systime.h
event-tty.o: systty.h
event-tty.o: syswait.h
event-tty.o: toolbar.h
events.o: blocktype.h
events.o: buffer.h
events.o: bufslots.h
events.o: config.h
events.o: device-tty.h
events.o: device-x.h
events.o: device.h
events.o: dynarr.h
events.o: events.h
events.o: extents.h
events.o: frame.h
events.o: keymap.h
events.o: redisplay.h
events.o: scrollbar.h
events.o: specifier.h
events.o: systime.h
events.o: systty.h
events.o: toolbar.h
events.o: window.h
events.o: xintrinsic.h
extents.o: blocktype.h
extents.o: buffer.h
extents.o: bufslots.h
extents.o: config.h
extents.o: debug.h
extents.o: device.h
extents.o: dynarr.h
extents.o: extents.h
extents.o: faces.h
extents.o: frame.h
extents.o: glyphs.h
extents.o: hash.h
extents.o: insdel.h
extents.o: opaque.h
extents.o: process.h
extents.o: redisplay.h
extents.o: scrollbar.h
extents.o: specifier.h
extents.o: toolbar.h
faces.o: EmacsFrame.h
faces.o: blocktype.h
faces.o: buffer.h
faces.o: bufslots.h
faces.o: config.h
faces.o: device-x.h
faces.o: device.h
faces.o: dynarr.h
faces.o: elhash.h
faces.o: extents.h
faces.o: faces.h
faces.o: frame-x.h
faces.o: frame.h
faces.o: glyphs.h
faces.o: hash.h
faces.o: objects-x.h
faces.o: objects.h
faces.o: redisplay.h
faces.o: scrollbar.h
faces.o: specifier.h
faces.o: toolbar.h
faces.o: window.h
faces.o: xintrinsic.h
fileio.o: blocktype.h
fileio.o: buffer.h
fileio.o: bufslots.h
fileio.o: config.h
fileio.o: device.h
fileio.o: dynarr.h
fileio.o: events.h
fileio.o: frame.h
fileio.o: insdel.h
fileio.o: lstream.h
fileio.o: mule.h
fileio.o: ndir.h
fileio.o: redisplay.h
fileio.o: scrollbar.h
fileio.o: specifier.h
fileio.o: sysdep.h
fileio.o: sysdir.h
fileio.o: sysfile.h
fileio.o: sysproc.h
fileio.o: syspwd.h
fileio.o: systime.h
fileio.o: toolbar.h
fileio.o: window.h
filelock.o: blocktype.h
filelock.o: buffer.h
filelock.o: bufslots.h
filelock.o: config.h
filelock.o: dynarr.h
filelock.o: ndir.h
filelock.o: paths.h
filelock.o: sysdir.h
filelock.o: sysfile.h
filelock.o: syspwd.h
filemode.o: blocktype.h
filemode.o: config.h
filemode.o: dynarr.h
filemode.o: sysfile.h
floatfns.o: blocktype.h
floatfns.o: config.h
floatfns.o: dynarr.h
floatfns.o: sysfloat.h
fns.o: blocktype.h
fns.o: buffer.h
fns.o: bufslots.h
fns.o: bytecode.h
fns.o: commands.h
fns.o: config.h
fns.o: device.h
fns.o: dynarr.h
fns.o: events.h
fns.o: extents.h
fns.o: frame.h
fns.o: scrollbar.h
fns.o: specifier.h
fns.o: systime.h
fns.o: toolbar.h
font-lock.o: blocktype.h
font-lock.o: buffer.h
font-lock.o: bufslots.h
font-lock.o: config.h
font-lock.o: dynarr.h
font-lock.o: insdel.h
font-lock.o: syntax.h
frame-tty.o: blocktype.h
frame-tty.o: config.h
frame-tty.o: device-tty.h
frame-tty.o: device.h
frame-tty.o: dynarr.h
frame-tty.o: frame.h
frame-tty.o: scrollbar.h
frame-tty.o: specifier.h
frame-tty.o: systty.h
frame-tty.o: toolbar.h
frame-x.o: $(LWLIBSRCDIR)/lwlib.h
frame-x.o: EmacsFrame.h
frame-x.o: EmacsFrameP.h
frame-x.o: EmacsManager.h
frame-x.o: EmacsShell.h
frame-x.o: blocktype.h
frame-x.o: buffer.h
frame-x.o: bufslots.h
frame-x.o: config.h
frame-x.o: device-x.h
frame-x.o: device.h
frame-x.o: dynarr.h
frame-x.o: events.h
frame-x.o: extents.h
frame-x.o: faces.h
frame-x.o: frame-x.h
frame-x.o: frame.h
frame-x.o: glyphs-x.h
frame-x.o: glyphs.h
frame-x.o: objects-x.h
frame-x.o: objects.h
frame-x.o: redisplay.h
frame-x.o: scrollbar-x.h
frame-x.o: scrollbar.h
frame-x.o: specifier.h
frame-x.o: systime.h
frame-x.o: toolbar.h
frame-x.o: window.h
frame-x.o: xintrinsic.h
frame-x.o: xintrinsicp.h
frame-x.o: xmprimitivep.h
frame-x.o: xmu.h
frame.o: blocktype.h
frame.o: buffer.h
frame.o: bufslots.h
frame.o: config.h
frame.o: device.h
frame.o: dynarr.h
frame.o: extents.h
frame.o: faces.h
frame.o: frame.h
frame.o: glyphs.h
frame.o: redisplay.h
frame.o: scrollbar.h
frame.o: specifier.h
frame.o: sysdep.h
frame.o: toolbar.h
frame.o: window.h
free-hook.o: blocktype.h
free-hook.o: config.h
free-hook.o: dynarr.h
free-hook.o: hash.h
general.o: blocktype.h
general.o: config.h
general.o: dynarr.h
glyphs-x.o: $(LWLIBSRCDIR)/lwlib.h
glyphs-x.o: ../etc/xemacs.xbm
glyphs-x.o: bitmaps.h
glyphs-x.o: blocktype.h
glyphs-x.o: buffer.h
glyphs-x.o: bufslots.h
glyphs-x.o: config.h
glyphs-x.o: device-x.h
glyphs-x.o: device.h
glyphs-x.o: dynarr.h
glyphs-x.o: frame-x.h
glyphs-x.o: frame.h
glyphs-x.o: glyphs-x.h
glyphs-x.o: glyphs.h
glyphs-x.o: insdel.h
glyphs-x.o: objects-x.h
glyphs-x.o: objects.h
glyphs-x.o: scrollbar.h
glyphs-x.o: specifier.h
glyphs-x.o: sysfile.h
glyphs-x.o: toolbar.h
glyphs-x.o: xintrinsic.h
glyphs-x.o: xmu.h
glyphs.o: $(LWLIBSRCDIR)/lwlib.h
glyphs.o: blocktype.h
glyphs.o: buffer.h
glyphs.o: bufslots.h
glyphs.o: config.h
glyphs.o: device.h
glyphs.o: dynarr.h
glyphs.o: elhash.h
glyphs.o: faces.h
glyphs.o: frame.h
glyphs.o: glyphs-x.h
glyphs.o: glyphs.h
glyphs.o: objects.h
glyphs.o: redisplay.h
glyphs.o: scrollbar.h
glyphs.o: specifier.h
glyphs.o: toolbar.h
glyphs.o: window.h
glyphs.o: xintrinsic.h
gmalloc.o: config.h
gmalloc.o: getpagesize.h
hash.o: blocktype.h
hash.o: config.h
hash.o: dynarr.h
hash.o: elhash.h
hash.o: hash.h
hftctl.o: blocktype.h
hftctl.o: config.h
hftctl.o: dynarr.h
hpplay.o: blocktype.h
hpplay.o: config.h
hpplay.o: dynarr.h
indent.o: blocktype.h
indent.o: buffer.h
indent.o: bufslots.h
indent.o: config.h
indent.o: device.h
indent.o: dynarr.h
indent.o: extents.h
indent.o: faces.h
indent.o: frame.h
indent.o: glyphs.h
indent.o: insdel.h
indent.o: redisplay.h
indent.o: scrollbar.h
indent.o: specifier.h
indent.o: toolbar.h
indent.o: window.h
insdel.o: blocktype.h
insdel.o: buffer.h
insdel.o: bufslots.h
insdel.o: config.h
insdel.o: device.h
insdel.o: dynarr.h
insdel.o: extents.h
insdel.o: frame.h
insdel.o: insdel.h
insdel.o: lstream.h
insdel.o: mule.h
insdel.o: redisplay.h
insdel.o: scrollbar.h
insdel.o: specifier.h
insdel.o: toolbar.h
intl.o: blocktype.h
intl.o: bytecode.h
intl.o: config.h
intl.o: device.h
intl.o: dynarr.h
keyboard.o: blocktype.h
keyboard.o: buffer.h
keyboard.o: bufslots.h
keyboard.o: commands.h
keyboard.o: config.h
keyboard.o: device-tty.h
keyboard.o: device.h
keyboard.o: dynarr.h
keyboard.o: events.h
keyboard.o: frame.h
keyboard.o: macros.h
keyboard.o: redisplay.h
keyboard.o: scrollbar.h
keyboard.o: specifier.h
keyboard.o: sysdep.h
keyboard.o: systime.h
keyboard.o: systty.h
keyboard.o: toolbar.h
keyboard.o: window.h
keymap.o: blocktype.h
keymap.o: buffer.h
keymap.o: bufslots.h
keymap.o: bytecode.h
keymap.o: commands.h
keymap.o: config.h
keymap.o: device.h
keymap.o: dynarr.h
keymap.o: elhash.h
keymap.o: events.h
keymap.o: frame.h
keymap.o: insdel.h
keymap.o: keymap.h
keymap.o: redisplay.h
keymap.o: scrollbar.h
keymap.o: specifier.h
keymap.o: systime.h
keymap.o: toolbar.h
keymap.o: window.h
libsst.o: blocktype.h
libsst.o: config.h
libsst.o: dynarr.h
libsst.o: libsst.h
linuxplay.o: blocktype.h
linuxplay.o: config.h
linuxplay.o: dynarr.h
lread.o: blocktype.h
lread.o: buffer.h
lread.o: bufslots.h
lread.o: bytecode.h
lread.o: commands.h
lread.o: config.h
lread.o: dynarr.h
lread.o: insdel.h
lread.o: lstream.h
lread.o: opaque.h
lread.o: paths.h
lread.o: sysfile.h
lstream.o: blocktype.h
lstream.o: buffer.h
lstream.o: bufslots.h
lstream.o: config.h
lstream.o: dynarr.h
lstream.o: lstream.h
macros.o: blocktype.h
macros.o: buffer.h
macros.o: bufslots.h
macros.o: commands.h
macros.o: config.h
macros.o: device.h
macros.o: dynarr.h
macros.o: events.h
macros.o: frame.h
macros.o: keymap.h
macros.o: macros.h
macros.o: redisplay.h
macros.o: scrollbar.h
macros.o: specifier.h
macros.o: systime.h
macros.o: toolbar.h
macros.o: window.h
malloc.o: config.h
malloc.o: getpagesize.h
marker.o: blocktype.h
marker.o: buffer.h
marker.o: bufslots.h
marker.o: config.h
marker.o: dynarr.h
md5.o: blocktype.h
md5.o: buffer.h
md5.o: bufslots.h
md5.o: config.h
md5.o: dynarr.h
md5.o: insdel.h
menubar-x.o: $(LWLIBSRCDIR)/lwlib.h
menubar-x.o: EmacsFrame.h
menubar-x.o: EmacsManager.h
menubar-x.o: EmacsShell.h
menubar-x.o: blocktype.h
menubar-x.o: buffer.h
menubar-x.o: bufslots.h
menubar-x.o: commands.h
menubar-x.o: config.h
menubar-x.o: device-x.h
menubar-x.o: device.h
menubar-x.o: dynarr.h
menubar-x.o: events.h
menubar-x.o: frame-x.h
menubar-x.o: frame.h
menubar-x.o: opaque.h
menubar-x.o: redisplay.h
menubar-x.o: scrollbar.h
menubar-x.o: specifier.h
menubar-x.o: systime.h
menubar-x.o: toolbar.h
menubar-x.o: window.h
menubar-x.o: xintrinsic.h
menubar.o: blocktype.h
menubar.o: config.h
menubar.o: device.h
menubar.o: dynarr.h
menubar.o: frame.h
menubar.o: redisplay.h
menubar.o: scrollbar.h
menubar.o: specifier.h
menubar.o: toolbar.h
menubar.o: window.h
minibuf.o: blocktype.h
minibuf.o: buffer.h
minibuf.o: bufslots.h
minibuf.o: commands.h
minibuf.o: config.h
minibuf.o: device-stream.h
minibuf.o: device.h
minibuf.o: dynarr.h
minibuf.o: frame.h
minibuf.o: insdel.h
minibuf.o: redisplay.h
minibuf.o: scrollbar.h
minibuf.o: specifier.h
minibuf.o: toolbar.h
minibuf.o: window.h
mocklisp.o: blocktype.h
mocklisp.o: buffer.h
mocklisp.o: bufslots.h
mocklisp.o: config.h
mocklisp.o: dynarr.h
msdos.o: config.h
nas.o: blocktype.h
nas.o: config.h
nas.o: dynarr.h
objects-tty.o: blocktype.h
objects-tty.o: config.h
objects-tty.o: device-tty.h
objects-tty.o: device.h
objects-tty.o: dynarr.h
objects-tty.o: objects-tty.h
objects-tty.o: objects.h
objects-tty.o: specifier.h
objects-tty.o: systty.h
objects-x.o: blocktype.h
objects-x.o: buffer.h
objects-x.o: bufslots.h
objects-x.o: config.h
objects-x.o: device-x.h
objects-x.o: device.h
objects-x.o: dynarr.h
objects-x.o: insdel.h
objects-x.o: objects-x.h
objects-x.o: objects.h
objects-x.o: specifier.h
objects-x.o: xintrinsic.h
objects.o: blocktype.h
objects.o: config.h
objects.o: device.h
objects.o: dynarr.h
objects.o: elhash.h
objects.o: faces.h
objects.o: frame.h
objects.o: objects.h
objects.o: redisplay.h
objects.o: scrollbar.h
objects.o: specifier.h
objects.o: toolbar.h
objects.o: window.h
opaque.o: blocktype.h
opaque.o: config.h
opaque.o: dynarr.h
opaque.o: opaque.h
print.o: blocktype.h
print.o: buffer.h
print.o: bufslots.h
print.o: bytecode.h
print.o: config.h
print.o: device.h
print.o: dynarr.h
print.o: extents.h
print.o: frame.h
print.o: insdel.h
print.o: lstream.h
print.o: scrollbar.h
print.o: specifier.h
print.o: toolbar.h
process.o: config.h
pure.o: blocktype.h
pure.o: config.h
pure.o: dynarr.h
pure.o: puresize.h
ralloc.o: blocktype.h
ralloc.o: config.h
ralloc.o: dynarr.h
ralloc.o: getpagesize.h
realpath.o: config.h
redisplay-output.o: blocktype.h
redisplay-output.o: buffer.h
redisplay-output.o: bufslots.h
redisplay-output.o: config.h
redisplay-output.o: debug.h
redisplay-output.o: device.h
redisplay-output.o: dynarr.h
redisplay-output.o: faces.h
redisplay-output.o: frame.h
redisplay-output.o: glyphs.h
redisplay-output.o: redisplay.h
redisplay-output.o: scrollbar.h
redisplay-output.o: specifier.h
redisplay-output.o: sysdep.h
redisplay-output.o: toolbar.h
redisplay-output.o: window.h
redisplay-tty.o: blocktype.h
redisplay-tty.o: buffer.h
redisplay-tty.o: bufslots.h
redisplay-tty.o: config.h
redisplay-tty.o: device-tty.h
redisplay-tty.o: device.h
redisplay-tty.o: dynarr.h
redisplay-tty.o: events.h
redisplay-tty.o: faces.h
redisplay-tty.o: frame.h
redisplay-tty.o: glyphs.h
redisplay-tty.o: redisplay.h
redisplay-tty.o: scrollbar.h
redisplay-tty.o: specifier.h
redisplay-tty.o: sysdep.h
redisplay-tty.o: systime.h
redisplay-tty.o: systty.h
redisplay-tty.o: toolbar.h
redisplay-tty.o: window.h
redisplay-x.o: $(LWLIBSRCDIR)/lwlib.h
redisplay-x.o: EmacsFrame.h
redisplay-x.o: EmacsFrameP.h
redisplay-x.o: blocktype.h
redisplay-x.o: buffer.h
redisplay-x.o: bufslots.h
redisplay-x.o: config.h
redisplay-x.o: debug.h
redisplay-x.o: device-x.h
redisplay-x.o: device.h
redisplay-x.o: dynarr.h
redisplay-x.o: faces.h
redisplay-x.o: frame-x.h
redisplay-x.o: frame.h
redisplay-x.o: glyphs-x.h
redisplay-x.o: glyphs.h
redisplay-x.o: objects-x.h
redisplay-x.o: objects.h
redisplay-x.o: redisplay.h
redisplay-x.o: scrollbar.h
redisplay-x.o: specifier.h
redisplay-x.o: sysdep.h
redisplay-x.o: sysproc.h
redisplay-x.o: systime.h
redisplay-x.o: toolbar.h
redisplay-x.o: window.h
redisplay-x.o: xgccache.h
redisplay-x.o: xintrinsic.h
redisplay-x.o: xintrinsicp.h
redisplay-x.o: xmprimitivep.h
redisplay.o: blocktype.h
redisplay.o: buffer.h
redisplay.o: bufslots.h
redisplay.o: commands.h
redisplay.o: config.h
redisplay.o: debug.h
redisplay.o: device.h
redisplay.o: dynarr.h
redisplay.o: extents.h
redisplay.o: faces.h
redisplay.o: frame.h
redisplay.o: glyphs.h
redisplay.o: insdel.h
redisplay.o: process.h
redisplay.o: redisplay.h
redisplay.o: scrollbar.h
redisplay.o: specifier.h
redisplay.o: toolbar.h
redisplay.o: window.h
regex.o: blocktype.h
regex.o: buffer.h
regex.o: bufslots.h
regex.o: config.h
regex.o: dynarr.h
regex.o: regex.h
regex.o: syntax.h
scrollbar-x.o: $(LWLIBSRCDIR)/lwlib.h
scrollbar-x.o: EmacsFrame.h
scrollbar-x.o: EmacsManager.h
scrollbar-x.o: blocktype.h
scrollbar-x.o: config.h
scrollbar-x.o: device-x.h
scrollbar-x.o: device.h
scrollbar-x.o: dynarr.h
scrollbar-x.o: frame-x.h
scrollbar-x.o: frame.h
scrollbar-x.o: glyphs-x.h
scrollbar-x.o: glyphs.h
scrollbar-x.o: redisplay.h
scrollbar-x.o: scrollbar-x.h
scrollbar-x.o: scrollbar.h
scrollbar-x.o: specifier.h
scrollbar-x.o: toolbar.h
scrollbar-x.o: window.h
scrollbar-x.o: xintrinsic.h
scrollbar.o: blocktype.h
scrollbar.o: buffer.h
scrollbar.o: bufslots.h
scrollbar.o: commands.h
scrollbar.o: config.h
scrollbar.o: device.h
scrollbar.o: dynarr.h
scrollbar.o: frame.h
scrollbar.o: redisplay.h
scrollbar.o: scrollbar.h
scrollbar.o: specifier.h
scrollbar.o: toolbar.h
scrollbar.o: window.h
search.o: blocktype.h
search.o: buffer.h
search.o: bufslots.h
search.o: commands.h
search.o: config.h
search.o: dynarr.h
search.o: insdel.h
search.o: mule.h
search.o: regex.h
search.o: syntax.h
signal.o: blocktype.h
signal.o: config.h
signal.o: device.h
signal.o: dynarr.h
signal.o: events.h
signal.o: frame.h
signal.o: scrollbar.h
signal.o: specifier.h
signal.o: sysdep.h
signal.o: systime.h
signal.o: toolbar.h
sound.o: blocktype.h
sound.o: commands.h
sound.o: config.h
sound.o: device-x.h
sound.o: device.h
sound.o: dynarr.h
sound.o: redisplay.h
sound.o: sysdep.h
sound.o: xintrinsic.h
specifier.o: blocktype.h
specifier.o: buffer.h
specifier.o: bufslots.h
specifier.o: config.h
specifier.o: device.h
specifier.o: dynarr.h
specifier.o: frame.h
specifier.o: redisplay.h
specifier.o: scrollbar.h
specifier.o: specifier.h
specifier.o: toolbar.h
specifier.o: window.h
sunOS-fix.o: config.h
sunplay.o: blocktype.h
sunplay.o: config.h
sunplay.o: dynarr.h
sunplay.o: sysdep.h
sunpro.o: blocktype.h
sunpro.o: config.h
sunpro.o: dynarr.h
symbols.o: blocktype.h
symbols.o: buffer.h
symbols.o: bufslots.h
symbols.o: config.h
symbols.o: dynarr.h
syntax.o: blocktype.h
syntax.o: buffer.h
syntax.o: bufslots.h
syntax.o: commands.h
syntax.o: config.h
syntax.o: dynarr.h
syntax.o: insdel.h
syntax.o: syntax.h
sysdep.o: blocktype.h
sysdep.o: buffer.h
sysdep.o: bufslots.h
sysdep.o: config.h
sysdep.o: device-stream.h
sysdep.o: device-tty.h
sysdep.o: device-x.h
sysdep.o: device.h
sysdep.o: dynarr.h
sysdep.o: events.h
sysdep.o: frame.h
sysdep.o: ndir.h
sysdep.o: process.h
sysdep.o: redisplay.h
sysdep.o: scrollbar.h
sysdep.o: specifier.h
sysdep.o: sysdep.h
sysdep.o: sysdir.h
sysdep.o: sysfile.h
sysdep.o: systime.h
sysdep.o: systty.h
sysdep.o: syswait.h
sysdep.o: toolbar.h
sysdep.o: window.h
sysdep.o: xintrinsic.h
termcap.o: blocktype.h
termcap.o: config.h
termcap.o: device.h
termcap.o: dynarr.h
terminfo.o: config.h
toolbar-x.o: $(LWLIBSRCDIR)/lwlib.h
toolbar-x.o: EmacsFrame.h
toolbar-x.o: EmacsFrameP.h
toolbar-x.o: EmacsManager.h
toolbar-x.o: blocktype.h
toolbar-x.o: config.h
toolbar-x.o: device-x.h
toolbar-x.o: device.h
toolbar-x.o: dynarr.h
toolbar-x.o: faces.h
toolbar-x.o: frame-x.h
toolbar-x.o: frame.h
toolbar-x.o: glyphs-x.h
toolbar-x.o: glyphs.h
toolbar-x.o: objects-x.h
toolbar-x.o: objects.h
toolbar-x.o: redisplay.h
toolbar-x.o: scrollbar.h
toolbar-x.o: specifier.h
toolbar-x.o: toolbar.h
toolbar-x.o: window.h
toolbar-x.o: xgccache.h
toolbar-x.o: xintrinsic.h
toolbar-x.o: xintrinsicp.h
toolbar-x.o: xmprimitivep.h
toolbar.o: blocktype.h
toolbar.o: buffer.h
toolbar.o: bufslots.h
toolbar.o: config.h
toolbar.o: device.h
toolbar.o: dynarr.h
toolbar.o: frame.h
toolbar.o: glyphs.h
toolbar.o: redisplay.h
toolbar.o: scrollbar.h
toolbar.o: specifier.h
toolbar.o: toolbar.h
toolbar.o: window.h
tooltalk.o: blocktype.h
tooltalk.o: config.h
tooltalk.o: dynarr.h
tooltalk.o: elhash.h
tooltalk.o: process.h
tooltalk.o: tooltalk.h
tparam.o: config.h
undo.o: blocktype.h
undo.o: buffer.h
undo.o: bufslots.h
undo.o: config.h
undo.o: dynarr.h
undo.o: extents.h
vm-limit.o: blocktype.h
vm-limit.o: config.h
vm-limit.o: dynarr.h
vm-limit.o: mem-limits.h
vmsproc.o: clidef.h
vmsproc.o: dvidef.h
vmsproc.o: iodef.h
vmsproc.o: ssdef.h
vmsproc.o: vmsproc.h
window.o: blocktype.h
window.o: buffer.h
window.o: bufslots.h
window.o: commands.h
window.o: config.h
window.o: device.h
window.o: dynarr.h
window.o: faces.h
window.o: frame.h
window.o: glyphs.h
window.o: redisplay.h
window.o: scrollbar.h
window.o: specifier.h
window.o: toolbar.h
window.o: window.h
xgccache.o: blocktype.h
xgccache.o: config.h
xgccache.o: dynarr.h
xgccache.o: hash.h
xgccache.o: xgccache.h
xmu.o: config.h
xselect.o: blocktype.h
xselect.o: config.h
xselect.o: device-x.h
xselect.o: device.h
xselect.o: dynarr.h
xselect.o: frame-x.h
xselect.o: frame.h
xselect.o: objects-x.h
xselect.o: objects.h
xselect.o: opaque.h
xselect.o: scrollbar.h
xselect.o: specifier.h
xselect.o: systime.h
xselect.o: toolbar.h
xselect.o: xintrinsic.h
